package OJDemo输入输出;

import java.util.ArrayList;
import java.util.Scanner;

/**
 * @author zc
 * @version 1.0
 * @date 2021/9/7 10:52
 */
//https://ac.nowcoder.com/acm/contest/5657#question
//输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据有多组, 如果输入为0 0则结束输入

public class Main4 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        ArrayList<Integer> adds = new ArrayList<>();
        while(scanner.hasNextLine()){
            String[] lines = scanner.nextLine().split(" ");
            int a = Integer.parseInt(lines[0]);
            int b = Integer.parseInt(lines[1]);
            if (a==0&&b==0){
                break;
            }
            adds.add(a+b);

        }

        //输出
        for (Integer i : adds){
            System.out.println(i);
        }
    }
}
